import request from "@/utils/request";

// 获取快递员分页数据
export const getCourierListApi = (params) => {
  return request({
    method: "GET",
    url: "/business-hall/courier/page",
    params,
  });
};

//获取司机分页数据
export const getDriverListApi = (params) => {
  return request({
    method: "GET",
    url: "/driver/page",
    params,
  });
};

//获取司机基本信息
export const getDriverInfoApi = (id) => {
  return request({
    method: "GET",
    url: `/driver/${id}`,
  });
};

//分页排班查询
export const getWorkSchedulingApi = (params) => {
  return request({
    method: "GET",
    url: "/work-schedulings",
    params,
  });
};

//https://slwl-geteway.itheima.net/manager/work-patterns/all
export const getSelectApi = () => {
  return request({
    method: "GET",
    url: `/work-patterns/all`,
  });
};
